package cn.com.pansky.util;

public class ProtectUtil {

	public static String help1(String CA006){
		String first = CA006.substring(0,1);
		String last = CA006.substring(CA006.length()-1,CA006.length());
		String str = "";
		for (int i = 0; i < CA006.length()-2; i++) {
			str+="*";
		}
		str = first+str+last;
		return str;
	}
	
	public static String help2(String cardId){
		String str = "";
		String last = cardId.substring(cardId.length()-4);
		for (int i = 0; i < cardId.length()-4; i++) {
			str+="*";
		}
		str = str+last;
		return str;
	}
	
}
